<script src="/MVC/3rdparty/ckeditor/ckeditor.js"></script>



<div id="comment-form">
<?php echo View::format_comments($allcom);?>
<form action="/MVC/main/article/<?php echo $blog_id?>" method="POST">
		<h1>发表评论</h1>
		<?php echo View::format_errors($warning, $errors); ?>
		<p><label>名字：
			<input type="text" name="name" maxlength="150" value="<?php echo $n ?>" />
		</label></p>
		<p><label>邮箱：
			<input type="text" name="email" maxlength="150" value="<?php echo $e ?>"/>
		</label></p><p>
			<textarea id="ckeditor"  name="comment"><?php echo $c?></textarea>
		</label></p>
		<input type="hidden" name="blog_id" value="$blog_id" />
		<p><input class="csubmit" type="submit" name="submit" value="发表评论" /></p>
</form>
</div>
<script type="text/javascript">
	CKEDITOR.replace('ckeditor', {
		toolbar: [
    { name: 'tool', items: ['PasteText', 'PasteFromWord', '-', 'Undo', 'Redo',
    '-', 'Bold', 'Italic', 'Underline','Strike', 'Subscript','Superscript', '-',
    'Link','Unlink'] }],
		height: 150,
		width : 400,
		contentsCss: '/MVC/css/editor.css'
	});
</script>